import {
  createWebHashHistory,
  createRouter
} from 'vue-router'

import indexView from '../views/indexView.vue'

const routes = [{
  path: '/',
  redirect: "/wall",
  component: indexView,
  children: [{
    path: '/wall',
    component: () => import('../views/WallMessage.vue')
  }]
}, ]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router